{include file="public/header"/}
{include file="public/add_header"/}
<form method="post" class="form-horizontal" action="save" id="layer-form">
    {if condition="$data['id']!=''"}<input type="hidden" value="{$data['id']}" name="id">{/if}
    <!--表单项-->
        
                <div class="form-group">
                    <label class="col-sm-2 control-label">字典名称</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="name" value="{$data['name']}" >
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">编码</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="code" value="{$data['code']}" >
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">字典值</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="val" value="{$data['val']}" >
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <input type="hidden" class="form-control" name="type_id" value="{$data['type_id']}" id="type_id">
                <div class="form-group">
                    <label class="col-sm-2 control-label">描述</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="about" value="{$data['about']}" >
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
    <!--/表单项-->
    {$html->submit_btn()}
</form>
{include file="public/add_footer"/}
{include file="public/footer"/}
<script type="text/javascript">
    $(function(){
        var typeId=$('#type_id', parent.document).val();
        $('#type_id').val(typeId)

    });
</script>